<?php
include_once("C_colorGraph.inc");
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<head>
	<style type="text/css">
	.leanclean {
		font-size:10px;
		font-style:oblique;
	}
	</style>
</head>
<body>

<?php


//---------------------------
kickOut("
	\$graph = new ColorGraph();
	print \$graph->getHorrizBar(128,392);
");


//---------------------------
kickOut("
	\$graph = new ColorGraph();
	\$graph->colorPercentsOff();
	print \$graph->getHorrizBar(0,1000);
	\$graph->hidePercents();
	\$graph->setMidColor(0,170,0);
	print \$graph->getHorrizBar(4000,10000);
	\$graph->hideTotals();
	print \$graph->getHorrizBar(71,100);
");


//---------------------------
kickOut("
	\$gr = new ColorGraph();
	\$gr->setStartColor(255,0,0);
	\$gr->setMidColor(0,0,255);
	\$gr->setEndColor(0,170,0);
	\$gr->setTextClass(\"leanclean\");
	for( \$i=-2; \$i<=12; \$i++) {
		print \$gr->getHorrizBar(\$i,10);
	}
");







function kickOut($o) {
	print "<br /><hr />";

	print "<div style=\"border:dashed black 1px;padding: 4px;\">";
	print "<div>Example:</div>";
	print "<div style=\"border:solid red 1px;\">";
	print "<code><pre>".htmlentities($o)."</pre></code>";
	print "</div>";

	print "<div>Outputs:</div>";
	print "<div style=\"border:solid red 0px;\">";
	eval(html_entity_decode($o));
	print "</div>";

	print "</div>";
}
?>

</body>
</html>
